//
//  CRKitConfig.h
//  TestPrj
//
//  Created by 朱铅峰 on 2020/8/6.
//  Copyright © 2020 Xing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CRKitSettings.h"
#import "CRMessage.h"
#import "CRHeader.h"

@interface CRKitConfig : NSObject

+ (instancetype)instance;

/**
 *  每隔多久显示一条消息
 */
@property (nonatomic, assign)  NSTimeInterval messageInterval;

/**
 *  每次抓取的消息个数
 */
@property (nonatomic, assign)  NSInteger messageLimit;


/**
 *  录音的最大时长
 */
@property (nonatomic, assign)  NSTimeInterval recordMaxDuration;


/**
 *  输入框的占位符
 */
@property (nonatomic, copy)  NSString *placeholder;


/**
 *  输入框能容纳的最大字符长度
 */
@property (nonatomic, assign) NSInteger inputMaxLength;


/**
 *  cell 的背景色
 */
@property (nonatomic, strong) UIColor *cellBackgroundColor;


/**
 *  头像类型
 */
@property (nonatomic, assign) CRKitAvatarType avatarType;


/**
 *  昵称字体
 */
@property (nonatomic, strong) UIFont *nickFont;

/**
 *  已读回执字体
 */
@property (nonatomic, strong) UIFont *receiptFont;

/**
 *  昵称颜色
 */
@property (nonatomic, strong) UIColor *nickColor;


/**
 *  已读回执颜色
 */
@property (nonatomic, strong) UIColor *receiptColor;


/**
 *  左侧气泡设置
 */
@property (nonatomic, strong) CRKitSettings *leftBubbleSettings;

/**
 *  右侧气泡设置
 */
@property (nonatomic, strong) CRKitSettings *rightBubbleSettings;

/// 默认的更多面板的按钮配置
- (NSArray *)defaultMediaItems;

/*根据消息取到配置*/

- (CRKitSetting *)setting:(CRMessage *)message;


/*被回复消息取到配置*/

- (CRKitSetting *)repliedSetting:(CRMessage *)message;

@end
